import React from "react";

export default function index(props) {
  const { title, changeTitle } = props;
  return (
    <div>
      <h1>{title}</h1>
      <button onClick={() => changeTitle("这是第三个标题")}>更改数据</button>
    </div>
  );
}
